package MaxInterface;

import javax.swing.JDialog;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.GridBagLayout;
import javax.swing.BorderFactory;
import javax.swing.border.TitledBorder;
import java.awt.Font;
import java.awt.Color;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JList;
import java.awt.GridBagConstraints;
import javax.swing.JCheckBox;
import java.awt.Insets;
import javax.swing.JButton;
import javax.swing.SwingConstants;

public class Settings {

	private JDialog jDialog = null;  //  @jve:decl-index=0:visual-constraint="387,23"
	private JPanel jContentPane = null;
	private JPanel jPanel = null;
	private JPanel jPanel11 = null;
	private JRadioButton jRadioButton = null;
	private JRadioButton jRadioButton1 = null;
	private JLabel jLabel = null;
	private JTextField jTextField = null;
	private JTextField jTextField2 = null;
	private JList jList = null;
	private JPanel jPanel2 = null;
	private JRadioButton jRadioButton3 = null;
	private JPanel jPanel3 = null;
	private JLabel jLabel1 = null;
	private JTextField jTextField1 = null;
	private JLabel jLabel2 = null;
	private JLabel jLabel3 = null;
	private JLabel jLabel4 = null;
	private JPanel jPanel4 = null;
	private JLabel jLabel21 = null;
	private JLabel jLabel22 = null;
	private JLabel jLabel23 = null;
	private JLabel jLabel25 = null;
	private JTextField jTextField3 = null;
	private JTextField jTextField4 = null;
	private JLabel jLabel24 = null;
	private JTextField jTextField5 = null;
	private JTextField jTextField6 = null;
	private JLabel jLabel26 = null;
	private JTextField jTextField7 = null;
	private JTextField jTextField8 = null;
	private JLabel jLabel27 = null;
	private JTextField jTextField9 = null;
	private JTextField jTextField10 = null;
	private JLabel jLabel28 = null;
	private JCheckBox jCheckBox = null;
	private JCheckBox jCheckBox1 = null;
	private JCheckBox jCheckBox2 = null;
	private JCheckBox jCheckBox3 = null;
	private JButton jButton = null;
	/**
	 * This method initializes jDialog	
	 * 	
	 * @return javax.swing.JDialog	
	 */
	private JDialog getJDialog() {
		if (jDialog == null) {
			jDialog = new JDialog();
			jDialog.setSize(new Dimension(357, 499));
			jDialog.setTitle("Settings");
			jDialog.setContentPane(getJContentPane());
		}
		return jDialog;
	}

	/**
	 * This method initializes jContentPane	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
			gridBagConstraints3.gridx = 0;
			gridBagConstraints3.fill = GridBagConstraints.HORIZONTAL;
			gridBagConstraints3.gridy = 3;
			GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
			gridBagConstraints2.insets = new Insets(0, 0, 2, 0);
			gridBagConstraints2.gridy = 2;
			gridBagConstraints2.ipadx = 30;
			gridBagConstraints2.ipady = 68;
			gridBagConstraints2.gridx = 0;
			GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
			gridBagConstraints1.gridx = 0;
			gridBagConstraints1.ipadx = 176;
			gridBagConstraints1.ipady = 44;
			gridBagConstraints1.gridy = 1;
			GridBagConstraints gridBagConstraints = new GridBagConstraints();
			gridBagConstraints.gridx = 0;
			gridBagConstraints.ipadx = 49;
			gridBagConstraints.ipady = 2;
			gridBagConstraints.gridy = 0;
			jContentPane = new JPanel();
			jContentPane.setLayout(new GridBagLayout());
			jContentPane.add(getJPanel4(), gridBagConstraints);
			jContentPane.add(getJPanel(), gridBagConstraints1);
			jContentPane.add(getJPanel2(), gridBagConstraints2);
			jContentPane.add(getJButton(), gridBagConstraints3);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanel() {
		if (jPanel == null) {
			jLabel = new JLabel();
			jLabel.setText("# of orders");
			GridLayout gridLayout1 = new GridLayout();
			gridLayout1.setRows(3);
			gridLayout1.setColumns(2);
			jPanel = new JPanel();
			jPanel.setLayout(gridLayout1);
			jPanel.setName("");
			jPanel.setBorder(BorderFactory.createTitledBorder(null, "Position Sezing", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
			jPanel.setToolTipText("");
			jPanel.add(getJRadioButton1(), null);
			jPanel.add(getJTextField(), null);
			jPanel.add(getJRadioButton(), null);
			jPanel.add(getJList(), null);
			jPanel.add(jLabel, null);
			jPanel.add(getJTextField2(), null);
		}
		return jPanel;
	}

	

	/**
	 * This method initializes jRadioButton	
	 * 	
	 * @return javax.swing.JRadioButton	
	 */
	private JRadioButton getJRadioButton() {
		if (jRadioButton == null) {
			jRadioButton = new JRadioButton();
			jRadioButton.setText("Auto MM");
		}
		return jRadioButton;
	}

	/**
	 * This method initializes jRadioButton1	
	 * 	
	 * @return javax.swing.JRadioButton	
	 */
	private JRadioButton getJRadioButton1() {
		if (jRadioButton1 == null) {
			jRadioButton1 = new JRadioButton();
			jRadioButton1.setText("Fixed lot");
		}
		return jRadioButton1;
	}

	/**
	 * This method initializes jTextField	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField() {
		if (jTextField == null) {
			jTextField = new JTextField();
		}
		return jTextField;
	}

	/**
	 * This method initializes jTextField2	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField2() {
		if (jTextField2 == null) {
			jTextField2 = new JTextField();
		}
		return jTextField2;
	}

	/**
	 * This method initializes jList	
	 * 	
	 * @return javax.swing.JList	
	 */
	private JList getJList() {
		if (jList == null) {
			jList = new JList();
		}
		return jList;
	}

	/**
	 * This method initializes jPanel2	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanel2() {
		if (jPanel2 == null) {
			GridLayout gridLayout3 = new GridLayout();
			gridLayout3.setRows(2);
			gridLayout3.setColumns(2);
			jPanel2 = new JPanel();
			jPanel2.setLayout(gridLayout3);
			jPanel2.setBorder(BorderFactory.createTitledBorder(null, "Orders visualization", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
			jPanel2.add(getJRadioButton3(), null);
			jPanel2.add(getJPanel3(), null);
			jPanel2.add(jLabel1, null);
			jPanel2.add(getJTextField1(), null);
		}
		return jPanel2;
	}

	/**
	 * This method initializes jRadioButton3	
	 * 	
	 * @return javax.swing.JRadioButton	
	 */
	private JRadioButton getJRadioButton3() {
		if (jRadioButton3 == null) {
			jRadioButton3 = new JRadioButton();
			jRadioButton3.setText("Show trades on chart");
		}
		return jRadioButton3;
	}

	/**
	 * This method initializes jPanel3	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanel3() {
		if (jPanel3 == null) {
			jLabel1 = new JLabel();
			jLabel1.setText("# of trades to show");
			GridLayout gridLayout4 = new GridLayout();
			gridLayout4.setRows(1);
			gridLayout4.setColumns(2);
			jPanel3 = new JPanel();
			jPanel3.setLayout(gridLayout4);
		}
		return jPanel3;
	}

	/**
	 * This method initializes jTextField1	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField1() {
		if (jTextField1 == null) {
			jTextField1 = new JTextField();
		}
		return jTextField1;
	}

	/**
	 * This method initializes jPanel4	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanel4() {
		if (jPanel4 == null) {
			jLabel28 = new JLabel();
			jLabel28.setText("Sound");
			jLabel27 = new JLabel();
			jLabel27.setText("4H");
			jLabel26 = new JLabel();
			jLabel26.setText("1H");
			jLabel24 = new JLabel();
			jLabel24.setText("15M");
			jLabel25 = new JLabel();
			jLabel25.setText("P21MA");
			jLabel23 = new JLabel();
			jLabel23.setText("P233MA");
			jLabel22 = new JLabel();
			jLabel22.setText("5M");
			jLabel21 = new JLabel();
			jLabel21.setText("");
			GridLayout gridLayout2 = new GridLayout();
			gridLayout2.setRows(4);
			gridLayout2.setHgap(10);
			gridLayout2.setVgap(10);
			gridLayout2.setColumns(5);
			jPanel4 = new JPanel();
			jPanel4.setLayout(gridLayout2);
			jPanel4.setBorder(BorderFactory.createTitledBorder(null, "Minimal distance from MAs", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));
			jPanel4.add(jLabel21, null);
			jPanel4.add(jLabel22, null);
			jPanel4.add(jLabel24, null);
			jPanel4.add(jLabel26, null);
			jPanel4.add(jLabel27, null);
			jPanel4.add(jLabel25, null);
			jPanel4.add(getJTextField3(), null);
			jPanel4.add(getJTextField5(), null);
			jPanel4.add(getJTextField7(), null);
			jPanel4.add(getJTextField9(), null);
			jPanel4.add(jLabel23, null);
			jPanel4.add(getJTextField4(), null);
			jPanel4.add(getJTextField6(), null);
			jPanel4.add(getJTextField8(), null);
			jPanel4.add(getJTextField10(), null);
			jPanel4.add(jLabel28, null);
			jPanel4.add(getJCheckBox(), null);
			jPanel4.add(getJCheckBox1(), null);
			jPanel4.add(getJCheckBox2(), null);
			jPanel4.add(getJCheckBox3(), null);
		}
		return jPanel4;
	}

	/**
	 * This method initializes jTextField3	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField3() {
		if (jTextField3 == null) {
			jTextField3 = new JTextField();
		}
		return jTextField3;
	}

	/**
	 * This method initializes jTextField4	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField4() {
		if (jTextField4 == null) {
			jTextField4 = new JTextField();
		}
		return jTextField4;
	}

	/**
	 * This method initializes jTextField5	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField5() {
		if (jTextField5 == null) {
			jTextField5 = new JTextField();
		}
		return jTextField5;
	}

	/**
	 * This method initializes jTextField6	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField6() {
		if (jTextField6 == null) {
			jTextField6 = new JTextField();
		}
		return jTextField6;
	}

	/**
	 * This method initializes jTextField7	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField7() {
		if (jTextField7 == null) {
			jTextField7 = new JTextField();
		}
		return jTextField7;
	}

	/**
	 * This method initializes jTextField8	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField8() {
		if (jTextField8 == null) {
			jTextField8 = new JTextField();
		}
		return jTextField8;
	}

	/**
	 * This method initializes jTextField9	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField9() {
		if (jTextField9 == null) {
			jTextField9 = new JTextField();
		}
		return jTextField9;
	}

	/**
	 * This method initializes jTextField10	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField10() {
		if (jTextField10 == null) {
			jTextField10 = new JTextField();
		}
		return jTextField10;
	}

	/**
	 * This method initializes jCheckBox	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBox() {
		if (jCheckBox == null) {
			jCheckBox = new JCheckBox();
		}
		return jCheckBox;
	}

	/**
	 * This method initializes jCheckBox1	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBox1() {
		if (jCheckBox1 == null) {
			jCheckBox1 = new JCheckBox();
		}
		return jCheckBox1;
	}

	/**
	 * This method initializes jCheckBox2	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBox2() {
		if (jCheckBox2 == null) {
			jCheckBox2 = new JCheckBox();
		}
		return jCheckBox2;
	}

	/**
	 * This method initializes jCheckBox3	
	 * 	
	 * @return javax.swing.JCheckBox	
	 */
	private JCheckBox getJCheckBox3() {
		if (jCheckBox3 == null) {
			jCheckBox3 = new JCheckBox();
		}
		return jCheckBox3;
	}

	/**
	 * This method initializes jButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton() {
		if (jButton == null) {
			jButton = new JButton();
			jButton.setText("Submit");
			jButton.setHorizontalAlignment(SwingConstants.CENTER);
		}
		return jButton;
	}

}
